import Vue from 'vue'
import App from './App.vue'
//引入路由插件
import VueRouter from "vue-router";
//引入路由器
import router from "./router/index";
//引入axios
import axios from "axios";
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css'

//修改内部请求为axios
axios.defaults.withCredentials = true
Vue.prototype.$http = axios
    Vue.config.productionTip = false

//应用路由插件
Vue.use(VueRouter)
//应用ui
Vue.use(ElementUI)
new Vue({
    router: router,
    render: h => h(App),
}).$mount('#app')
